{ config, lib, pkgs, ... }:

{
  services = {
    xserver = {
      desktopManager.xfce.enable = true;
      displayManager.defaultSession = "xfce";
      libinput.mouse.accelProfile = "flat";
    };
    # bamf.enable = true;
  };

  environment.systemPackages = with pkgs; [
    xfce.xfce4-pulseaudio-plugin
    xfce.xfce4-whiskermenu-plugin
    xfce.xfce4-clipman-plugin
    pavucontrol
    mate.engrampa
    # plank
  ];
  xdg.portal = {
    enable = true;
    extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
  };

  programs.gnupg.agent.pinentryFlavor = "gtk2";
}
